var express = require('express')
var config = require('./config/index')

var app = express()

app.use(express.static('./dist'))
var port = process.env.PORT || config.build.port
module.export = app.listen(port,function (err) {
  if(err){
    console.log(err)
    return
  }
  console.log('Listening at http://localhost' + port)
})
